package com.dayu.other.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dayu.common.annotation.Excel;
import com.dayu.common.core.domain.BaseEntity;

/**
 * 判责中心对象 dy_judge_obligation
 * 
 * @author HK
 * @date 2024-01-24
 */
public class DyJudgeObligation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private String goodsId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String goodsName;

    /** 状态 0=判责中，1=已判责，2=作废 */
    @Excel(name = "状态 0=判责中，1=已判责，2=作废")
    private Integer status;

    /** 是否申述（0=未申述，1=申述） */
    @Excel(name = "是否申述", readConverterExp = "0==未申述，1=申述")
    private Integer hasState;

    /** 申述原因 */
    @Excel(name = "申述原因")
    private String stateRemark;

    /** 判责金额 */
    @Excel(name = "判责金额")
    private BigDecimal price;

    /** 判责人id */
    @Excel(name = "判责人id")
    private Long judgeUserId;

    /** 判责人名称 */
    @Excel(name = "判责人名称")
    private String judgeUserName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGoodsId(String goodsId) 
    {
        this.goodsId = goodsId;
    }

    public String getGoodsId() 
    {
        return goodsId;
    }
    public void setGoodsName(String goodsName) 
    {
        this.goodsName = goodsName;
    }

    public String getGoodsName() 
    {
        return goodsName;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setHasState(Integer hasState) 
    {
        this.hasState = hasState;
    }

    public Integer getHasState() 
    {
        return hasState;
    }
    public void setStateRemark(String stateRemark) 
    {
        this.stateRemark = stateRemark;
    }

    public String getStateRemark() 
    {
        return stateRemark;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setJudgeUserId(Long judgeUserId) 
    {
        this.judgeUserId = judgeUserId;
    }

    public Long getJudgeUserId() 
    {
        return judgeUserId;
    }
    public void setJudgeUserName(String judgeUserName) 
    {
        this.judgeUserName = judgeUserName;
    }

    public String getJudgeUserName() 
    {
        return judgeUserName;
    }
    public void setCrateTime(Date crateTime) 
    {
        this.crateTime = crateTime;
    }

    public Date getCrateTime() 
    {
        return crateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("goodsName", getGoodsName())
            .append("status", getStatus())
            .append("hasState", getHasState())
            .append("stateRemark", getStateRemark())
            .append("price", getPrice())
            .append("judgeUserId", getJudgeUserId())
            .append("judgeUserName", getJudgeUserName())
            .append("createBy", getCreateBy())
            .append("crateTime", getCrateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
